﻿using System;
using System.Collections.Generic;
using System.Text;
using DAL;
using System.Data;

namespace BLL
{
    public class OpenReservationMange
    {
        /// <summary>
        /// 增加一条数据
        /// </summary>
        public static int Add(Model.OpenReservation model)
        {
            return OpenReservationService.Add(model);
        }

        public static Model.OpenReservation SelectByID(int id)
        {
            return OpenReservationService.SelectByID(id);
        }
        /// <summary>
        /// 更新一条数据
        /// </summary>
        public static bool Update(Model.OpenReservation model)
        {
            return OpenReservationService.Update(model);
        }
        /// <summary>
        /// 删除一条数据
        /// </summary>
        public static void Delete(int id)
        {
            OpenReservationService.Delete(id);
        }
        /// <summary>
        /// 获得数据列表
        /// </summary>
        public static List<Model.OpenReservation> GetList(string strWhere = "")
        {
            return OpenReservationService.GetList(strWhere);
        }
    }
}
